/*
 * @(#)DefaultArrayInstanceFactory.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.ognl;

import java.lang.reflect.Array;

/**
 * The Class DefaultArrayInstanceFactory.
 * 
 * @author MiddleWare Platform Development Team
 */
class DefaultArrayInstanceFactory implements DefaultInstanceFactory {

	/**
	 * {@inheritDoc}
	 */
	public Object getInstance(Class< ? > type) throws Exception {
		return Array.newInstance(type.getComponentType(), 0);
	}
}
